import { defineConfig } from 'tsup'
import copy from "esbuild-plugin-copy"

export default defineConfig({
    entry: [
        'src/index.ts',
        'src/cli.ts'
    ],
    format: ['esm','cjs'],
    dts: true,
    splitting: true,
    sourcemap: false,
    clean: true,
    treeshake:true,  
    minify: true, 
    esbuildPlugins:[
        copy({
            assets: {
                from: ['./src/features/docs/*.ejs'],
                to: ['./'],
              },
          })
    ],
    banner: {
        js: `/**
*        
*   ---=== FlexCI ===---
*   https://zhangfisher.github.com/flexci
* 
*   自动化CI/CD工具集
*
*/`}
}) 